package com.njtoyo.taxi.admin.rest.wrapper.business.area;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@ApiModel("地区创建模型")
@Data
public class AreaCreateWrapper {
    @ApiModelProperty("地区名称")
    @NotEmpty(message = "地区名称不能为空")
    private String name;

    @ApiModelProperty("地区编码")
    @NotEmpty(message = "地区编码不能为空")
    private String adCode;

    @ApiModelProperty("是否开通")
    @NotNull(message = "是否开通不能为空")
    private Boolean isOpened;
}
